Specify version for optional librsvg dependency
authorAndreas Persson <andreasp56@outlook.com>
Thu, 6 Aug 2020 09:59:17 +0000 (11:59 +0200)
committerAndreas Persson <andreasp56@outlook.com>
Thu, 6 Aug 2020 12:02:02 +0000 (14:02 +0200)
The testsvg test uses a method in librsvg that was introduced in
2.46.0. The test is now skipped if the librsvg version is too old.
(It was previously already skipped if librsvg wasn't found.)

tests/meson.build

index c7a83bb7d1362f7b2967d29cd0d1a7169eb56585..fd5fd6905d19462b39bb1f631a02ad65e8e41014 100644 (file)
@@ -141,7 +141,7 @@ if get_option('profiler')
               dependencies: [profiler_dep, platform_gio_dep, libm])
 endif
 
-librsvg = dependency('librsvg-2.0', required: false)
+librsvg = dependency('librsvg-2.0', version: '>= 2.46.0', required: false)
 
 if librsvg.found()
   executable('testsvg', 'testsvg.c',